
	<script type="text/javascript">
	function showFullImage(id){
		 $('#image_'+id).bPopup({
	            fadeSpeed: 'slow', //can be a string ('slow'/'fast') or int
	            followSpeed: 1500, //can be a string ('slow'/'fast') or int
	            modalColor: '#000'
	        });
	}
	</script>
<div class="box_cart_front" >
        <ul class="font_ao">
        	{{foreach from=$allCat item=item key=key}}
				  <li class="{{if $idMenu == $item.product_category_gid}}frst{{/if}}" {{if $allCat|@count == $key+1}}style="margin:0;"{{/if}}><a href="{{$item.url}}">{{$item.name}}</a></li>
			{{/foreach}}
		</ul>
      </div>
    <div id="main">
		<div>
			{{foreach from=$allProducts item=item key=key}}
		          <div class="product m10r"> 
					<img onclick="showFullImage({{$item.product_id}})" src="{{$BASE_URL}}{{$item.main_image}}"/>
					<p class="gray_color"><strong>{{$item.title}}</strong></p>
					<div class="price">{{l}}Giá bán{{/l}} : {{if $item.price == null}}<a href="{{$BASE_URL}}contact-us.html">{{l}}liên hệ{{/l}}</a>{{else}} {{$item.price}} {{/if}}</div>
					<div class="cb"></div>
		          </div>
		          <div id="image_{{$item.product_id}}" class="popup"><img src="{{$BASE_URL}}{{$item.full_main_image}}"/></div>
	  		{{/foreach}}
          
          
          <div class="cb"></div>
        </div>
		

{{if $countAllPages > 1}}
<div class="box_pages m20t">
	    	<ul>
{{if 1 < $currentPage}}
<li class="firt">
<a href="?page=1" title="First Page">{{l}}Đầu{{/l}}</a>
 </li>
 <li><a href="?page={{math equation="(x - 1 )" x=$currentPage}}">«</a></li>
{{/if}}
{{foreach from=$prevPages item=item}}
<li>
                            <a href="?page={{$item}}" title="{{$item}}">{{$item}}</a>
                            </li>
{{/foreach}}
<li>
<a href="#" class="active" title="{{$currentPage}}">{{$currentPage}}</a>
</li>
{{foreach from=$nextPages item=item}}
<li>
<a href="?page={{$item}}" title="{{$item}}">{{$item}}</a>
</li>
{{/foreach}}
{{if $countAllPages > $currentPage}}
<li><a href="?page={{math equation="(x + 1 )" x=$currentPage}}">»</a></li>
<li class="firt"	>
<a href="?page={{$countAllPages}}">{{l}}Cuối{{/l}}</a>
</li>
{{/if}}
				</ul>
	        <div class="cb"></div>
    	</div>
{{/if}}


    </div>
